//
//  AddPhoneContactCell.m
//  jinwang
//
//  Created by jzb on 2018/3/26.
//  Copyright © 2018年 jzb. All rights reserved.
//

#import "AddPhoneContactCell.h"

@implementation AddPhoneContactCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(AddPhoneContactModel *)model{
    _model = model;
    
    self.user_name.text = [NSString stringWithFormat:@"%@",model.user_name];
    [self.HeaderImg sd_setImageWithURL:[NSURL URLWithString:model.user_portrait] placeholderImage:[UIImage imageNamed:@"headerImage"]];
    
    if ([model.is_friends integerValue] == 1) {
        self.AddBtn.userInteractionEnabled=NO;
        [self.AddBtn setTitle:@"已添加" forState:UIControlStateNormal];
        self.AddBtn.backgroundColor = [UIColor clearColor];
        [self.AddBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
